package bean;

/**
 * @auther hewenhui
 * @see <a href="hetp://www.codingmaster.com> java </a>
 */
public class User {
    private int Uid; // 自增主键
    private String phoneNumber; //手机号就是账户
    private String nickname; // 用户昵称
    private String password; // 登录密码
    private int sex; // 性别（0-女；1-男；2-保密）
    private double balanceOfAccount; // 账户余额
    private String avatarAddress; // 头像地址

    public User() {
    }

    public User(String phone_number, String password) {
        this.phoneNumber = phone_number;
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "Uid=" + Uid +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", balanceOfAccount=" + balanceOfAccount +
                ", avatarAddress='" + avatarAddress + '\'' +
                '}';
    }


    public int getUid() {
        return Uid;
    }

    public void setUid(int uid) {
        Uid = uid;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public double getBalanceOfAccount() {
        return balanceOfAccount;
    }

    public void setBalanceOfAccount(double balanceOfAccount) {
        this.balanceOfAccount = balanceOfAccount;
    }

    public String getAvatarAddress() {
        return avatarAddress;
    }

    public void setAvatarAddress(String avatarAddress) {
        this.avatarAddress = avatarAddress;
    }
}
